home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
1320
/
1320.xpi
/
defaults
/
transforms
/
prefs-0.5.xsl
< prev
Wrap
Extensible Markup Language
|
2010-01-22
|
866b
|
35 lines
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="gmanager">
<prefs version="0.5.1">
<xsl:apply-templates/>
</prefs>
</xsl:template>
<xsl:template match="account">
<account>
<xsl:copy-of select="@*"/>
<xsl:apply-templates select="pref[not(@id = 'toolbar-tab-location')]"/>
</account>
</xsl:template>
<xsl:template match="pref">
<pref>
<xsl:copy-of select="@*"/>
<xsl:if test="(@id = 'toolbar-left-click' or @id = 'toolbar-middle-click') and @value = 4">
<xsl:attribute name="value">
<xsl:value-of select="//pref[@id = 'toolbar-tab-location']/@value + 5"/>
</xsl:attribute>
</xsl:if>
</pref>
</xsl:template>
</xsl:stylesheet>